
<div class="container-fluid" style="margin: 0px 15px 0px 15px;">
<ol class="breadcrumb">
  <li><a href="<?php echo base_url('/index.php/inicio');?>">Início</a></li>
  <li><a href="<?php echo base_url('index.php/processos/novo');?>">Processo</a></li>
  <li class="active">Consulta</li>
</ol>
	<fieldset >
		<legend>Consulta Processo</legend>
			
		<?php
		//PERMISSAO 
		if(viewPermissao(array('1','2'),$session_data)){
		?>
		<a data-toggle="modal" href="<?php echo base_url('index.php/processos/novo');?>" class="btn btn-primary btn-xs"><span class="glyphicon glyphicon-plus"></span>Adicionar Processo</a>
		<?php
		}
		?>
		<br/>
		<br/>
		<table id="example" class="display responsive nowrap" cellspacing="0" width="100%">
			<thead>
				<tr>
					<th>Numero Processo</th>
					<th>Data Processo</th>
					<th>Tipo Processo</th>
					<th>Advogado</th>
					<th>Cód Bic</th>
					<th>Observação</th> 
					<th>Info</th> 
					<th>Detalhes</th> 
					
				</tr>
			</thead>
			<tbody>
			</tbody>
		</table>
	</fieldset>
</div>
<div class="modal" id="addassis">
	<div class="modal-dialog  modal-lg">
		<div class="modal-content">
		</div> 
	</div>
</div>
	<script type="text/javascript">
		$(document).ready(function(){
			var table = $('#example').DataTable({
				"order": [[ 1, "desc" ]],
				"processing": true,
				"serverSide": true,
				"ajax": {
					"url": "<?php echo base_url('index.php/processos/consultaProcessosJson'); ?>",
					"data": function ( d ) {
						d.status = "<?php echo $status;?>";
						d.busca = "<?php echo $busca;?>";
					}
				},
				"language": {
					"url": "<?php echo base_url('includes/js/Portuguese-Brasil.json'); ?>"
				},
				"pagingType": "simple"/*,
				"columnDefs": [
					{
						"targets": [ 5 ],
						"searchable": false,
						"orderable": false
					},
					{
						"targets": [ 7 ],
						"searchable": false,
						"orderable": false
					}
					
				]
				*/
			});

		});
	</script>
	</body>
</html>